<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This file documents the use of the GNU compilers.

Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>FRV Options (Using the GNU Compiler Collection (GCC))</title>

<meta name="description" content="FRV Options (Using the GNU Compiler Collection (GCC))">
<meta name="keywords" content="FRV Options (Using the GNU Compiler Collection (GCC))">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Indices.html" rel="index" title="Indices">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Submodel-Options.html" rel="up" title="Submodel Options">
<link href="GNU_002fLinux-Options.html" rel="next" title="GNU/Linux Options">
<link href="FT32-Options.html" rel="prev" title="FT32 Options">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
kbd.key {font-style: normal}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en_US">
<div class="subsection-level-extent" id="FRV-Options">
<div class="nav-panel">
<p>
Next: <a href="GNU_002fLinux-Options.html" accesskey="n" rel="next">GNU/Linux Options</a>, Previous: <a href="FT32-Options.html" accesskey="p" rel="prev">FT32 Options</a>, Up: <a href="Submodel-Options.html" accesskey="u" rel="up">Machine-Dependent Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsection" id="FRV-Options-1"><span>3.19.16 FRV Options<a class="copiable-link" href="#FRV-Options-1"> &para;</a></span></h4>
<a class="index-entry-id" id="index-FRV-Options"></a>

<dl class="table">
<dt><a id="index-mgpr_002d32"></a><span><code class="code">-mgpr-32</code><a class="copiable-link" href="#index-mgpr_002d32"> &para;</a></span></dt>
<dd>
<p>Only use the first 32 general-purpose registers.
</p>
</dd>
<dt><a id="index-mgpr_002d64"></a><span><code class="code">-mgpr-64</code><a class="copiable-link" href="#index-mgpr_002d64"> &para;</a></span></dt>
<dd>
<p>Use all 64 general-purpose registers.
</p>
</dd>
<dt><a id="index-mfpr_002d32"></a><span><code class="code">-mfpr-32</code><a class="copiable-link" href="#index-mfpr_002d32"> &para;</a></span></dt>
<dd>
<p>Use only the first 32 floating-point registers.
</p>
</dd>
<dt><a id="index-mfpr_002d64"></a><span><code class="code">-mfpr-64</code><a class="copiable-link" href="#index-mfpr_002d64"> &para;</a></span></dt>
<dd>
<p>Use all 64 floating-point registers.
</p>
</dd>
<dt><a id="index-mhard_002dfloat-1"></a><span><code class="code">-mhard-float</code><a class="copiable-link" href="#index-mhard_002dfloat-1"> &para;</a></span></dt>
<dd>
<p>Use hardware instructions for floating-point operations.
</p>
</dd>
<dt><a id="index-msoft_002dfloat-3"></a><span><code class="code">-msoft-float</code><a class="copiable-link" href="#index-msoft_002dfloat-3"> &para;</a></span></dt>
<dd>
<p>Use library routines for floating-point operations.
</p>
</dd>
<dt><a id="index-malloc_002dcc"></a><span><code class="code">-malloc-cc</code><a class="copiable-link" href="#index-malloc_002dcc"> &para;</a></span></dt>
<dd>
<p>Dynamically allocate condition code registers.
</p>
</dd>
<dt><a id="index-mfixed_002dcc"></a><span><code class="code">-mfixed-cc</code><a class="copiable-link" href="#index-mfixed_002dcc"> &para;</a></span></dt>
<dd>
<p>Do not try to dynamically allocate condition code registers, only
use <code class="code">icc0</code> and <code class="code">fcc0</code>.
</p>
</dd>
<dt><a id="index-mdword"></a><span><code class="code">-mdword</code><a class="copiable-link" href="#index-mdword"> &para;</a></span></dt>
<dd>
<p>Change ABI to use double word insns.
</p>
</dd>
<dt><a class="index-entry-id" id="index-mdword-1"></a>
<a id="index-mno_002ddword"></a><span><code class="code">-mno-dword</code><a class="copiable-link" href="#index-mno_002ddword"> &para;</a></span></dt>
<dd>
<p>Do not use double word instructions.
</p>
</dd>
<dt><a id="index-mdouble-1"></a><span><code class="code">-mdouble</code><a class="copiable-link" href="#index-mdouble-1"> &para;</a></span></dt>
<dd>
<p>Use floating-point double instructions.
</p>
</dd>
<dt><a id="index-mno_002ddouble"></a><span><code class="code">-mno-double</code><a class="copiable-link" href="#index-mno_002ddouble"> &para;</a></span></dt>
<dd>
<p>Do not use floating-point double instructions.
</p>
</dd>
<dt><a id="index-mmedia"></a><span><code class="code">-mmedia</code><a class="copiable-link" href="#index-mmedia"> &para;</a></span></dt>
<dd>
<p>Use media instructions.
</p>
</dd>
<dt><a id="index-mno_002dmedia"></a><span><code class="code">-mno-media</code><a class="copiable-link" href="#index-mno_002dmedia"> &para;</a></span></dt>
<dd>
<p>Do not use media instructions.
</p>
</dd>
<dt><a id="index-mmuladd"></a><span><code class="code">-mmuladd</code><a class="copiable-link" href="#index-mmuladd"> &para;</a></span></dt>
<dd>
<p>Use multiply and add/subtract instructions.
</p>
</dd>
<dt><a id="index-mno_002dmuladd"></a><span><code class="code">-mno-muladd</code><a class="copiable-link" href="#index-mno_002dmuladd"> &para;</a></span></dt>
<dd>
<p>Do not use multiply and add/subtract instructions.
</p>
</dd>
<dt><a id="index-mfdpic-1"></a><span><code class="code">-mfdpic</code><a class="copiable-link" href="#index-mfdpic-1"> &para;</a></span></dt>
<dd>
<p>Select the FDPIC ABI, which uses function descriptors to represent
pointers to functions.  Without any PIC/PIE-related options, it
implies <samp class="option">-fPIE</samp>.  With <samp class="option">-fpic</samp> or <samp class="option">-fpie</samp>, it
assumes GOT entries and small data are within a 12-bit range from the
GOT base address; with <samp class="option">-fPIC</samp> or <samp class="option">-fPIE</samp>, GOT offsets
are computed with 32 bits.
With a &lsquo;<samp class="samp">bfin-elf</samp>&rsquo; target, this option implies <samp class="option">-msim</samp>.
</p>
</dd>
<dt><a id="index-minline_002dplt-1"></a><span><code class="code">-minline-plt</code><a class="copiable-link" href="#index-minline_002dplt-1"> &para;</a></span></dt>
<dd>
<p>Enable inlining of PLT entries in function calls to functions that are
not known to bind locally.  It has no effect without <samp class="option">-mfdpic</samp>.
It&rsquo;s enabled by default if optimizing for speed and compiling for
shared libraries (i.e., <samp class="option">-fPIC</samp> or <samp class="option">-fpic</samp>), or when an
optimization option such as <samp class="option">-O3</samp> or above is present in the
command line.
</p>
</dd>
<dt><a id="index-mTLS"></a><span><code class="code">-mTLS</code><a class="copiable-link" href="#index-mTLS"> &para;</a></span></dt>
<dd>
<p>Assume a large TLS segment when generating thread-local code.
</p>
</dd>
<dt><a id="index-mtls"></a><span><code class="code">-mtls</code><a class="copiable-link" href="#index-mtls"> &para;</a></span></dt>
<dd>
<p>Do not assume a large TLS segment when generating thread-local code.
</p>
</dd>
<dt><a id="index-mgprel_002dro"></a><span><code class="code">-mgprel-ro</code><a class="copiable-link" href="#index-mgprel_002dro"> &para;</a></span></dt>
<dd>
<p>Enable the use of <code class="code">GPREL</code> relocations in the FDPIC ABI for data
that is known to be in read-only sections.  It&rsquo;s enabled by default,
except for <samp class="option">-fpic</samp> or <samp class="option">-fpie</samp>: even though it may help
make the global offset table smaller, it trades 1 instruction for 4.
With <samp class="option">-fPIC</samp> or <samp class="option">-fPIE</samp>, it trades 3 instructions for 4,
one of which may be shared by multiple symbols, and it avoids the need
for a GOT entry for the referenced symbol, so it&rsquo;s more likely to be a
win.  If it is not, <samp class="option">-mno-gprel-ro</samp> can be used to disable it.
</p>
</dd>
<dt><a id="index-multilib_002dlibrary_002dpic"></a><span><code class="code">-multilib-library-pic</code><a class="copiable-link" href="#index-multilib_002dlibrary_002dpic"> &para;</a></span></dt>
<dd>
<p>Link with the (library, not FD) pic libraries.  It&rsquo;s implied by
<samp class="option">-mlibrary-pic</samp>, as well as by <samp class="option">-fPIC</samp> and
<samp class="option">-fpic</samp> without <samp class="option">-mfdpic</samp>.  You should never have to use
it explicitly.
</p>
</dd>
<dt><a id="index-mlinked_002dfp"></a><span><code class="code">-mlinked-fp</code><a class="copiable-link" href="#index-mlinked_002dfp"> &para;</a></span></dt>
<dd>
<p>Follow the EABI requirement of always creating a frame pointer whenever
a stack frame is allocated.  This option is enabled by default and can
be disabled with <samp class="option">-mno-linked-fp</samp>.
</p>
</dd>
<dt><a id="index-mlong_002dcalls-4"></a><span><code class="code">-mlong-calls</code><a class="copiable-link" href="#index-mlong_002dcalls-4"> &para;</a></span></dt>
<dd>
<p>Use indirect addressing to call functions outside the current
compilation unit.  This allows the functions to be placed anywhere
within the 32-bit address space.
</p>
</dd>
<dt><a id="index-malign_002dlabels"></a><span><code class="code">-malign-labels</code><a class="copiable-link" href="#index-malign_002dlabels"> &para;</a></span></dt>
<dd>
<p>Try to align labels to an 8-byte boundary by inserting NOPs into the
previous packet.  This option only has an effect when VLIW packing
is enabled.  It doesn&rsquo;t create new packets; it merely adds NOPs to
existing ones.
</p>
</dd>
<dt><a id="index-mlibrary_002dpic"></a><span><code class="code">-mlibrary-pic</code><a class="copiable-link" href="#index-mlibrary_002dpic"> &para;</a></span></dt>
<dd>
<p>Generate position-independent EABI code.
</p>
</dd>
<dt><a id="index-macc_002d4"></a><span><code class="code">-macc-4</code><a class="copiable-link" href="#index-macc_002d4"> &para;</a></span></dt>
<dd>
<p>Use only the first four media accumulator registers.
</p>
</dd>
<dt><a id="index-macc_002d8"></a><span><code class="code">-macc-8</code><a class="copiable-link" href="#index-macc_002d8"> &para;</a></span></dt>
<dd>
<p>Use all eight media accumulator registers.
</p>
</dd>
<dt><a id="index-mpack"></a><span><code class="code">-mpack</code><a class="copiable-link" href="#index-mpack"> &para;</a></span></dt>
<dd>
<p>Pack VLIW instructions.
</p>
</dd>
<dt><a id="index-mno_002dpack"></a><span><code class="code">-mno-pack</code><a class="copiable-link" href="#index-mno_002dpack"> &para;</a></span></dt>
<dd>
<p>Do not pack VLIW instructions.
</p>
</dd>
<dt><a id="index-mno_002deflags"></a><span><code class="code">-mno-eflags</code><a class="copiable-link" href="#index-mno_002deflags"> &para;</a></span></dt>
<dd>
<p>Do not mark ABI switches in e_flags.
</p>
</dd>
<dt><a id="index-mcond_002dmove"></a><span><code class="code">-mcond-move</code><a class="copiable-link" href="#index-mcond_002dmove"> &para;</a></span></dt>
<dd>
<p>Enable the use of conditional-move instructions (default).
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-mno_002dcond_002dmove"></a><span><code class="code">-mno-cond-move</code><a class="copiable-link" href="#index-mno_002dcond_002dmove"> &para;</a></span></dt>
<dd>
<p>Disable the use of conditional-move instructions.
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-mscc"></a><span><code class="code">-mscc</code><a class="copiable-link" href="#index-mscc"> &para;</a></span></dt>
<dd>
<p>Enable the use of conditional set instructions (default).
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-mno_002dscc"></a><span><code class="code">-mno-scc</code><a class="copiable-link" href="#index-mno_002dscc"> &para;</a></span></dt>
<dd>
<p>Disable the use of conditional set instructions.
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-mcond_002dexec"></a><span><code class="code">-mcond-exec</code><a class="copiable-link" href="#index-mcond_002dexec"> &para;</a></span></dt>
<dd>
<p>Enable the use of conditional execution (default).
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-mno_002dcond_002dexec-1"></a><span><code class="code">-mno-cond-exec</code><a class="copiable-link" href="#index-mno_002dcond_002dexec-1"> &para;</a></span></dt>
<dd>
<p>Disable the use of conditional execution.
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-mvliw_002dbranch"></a><span><code class="code">-mvliw-branch</code><a class="copiable-link" href="#index-mvliw_002dbranch"> &para;</a></span></dt>
<dd>
<p>Run a pass to pack branches into VLIW instructions (default).
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-mno_002dvliw_002dbranch"></a><span><code class="code">-mno-vliw-branch</code><a class="copiable-link" href="#index-mno_002dvliw_002dbranch"> &para;</a></span></dt>
<dd>
<p>Do not run a pass to pack branches into VLIW instructions.
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-mmulti_002dcond_002dexec"></a><span><code class="code">-mmulti-cond-exec</code><a class="copiable-link" href="#index-mmulti_002dcond_002dexec"> &para;</a></span></dt>
<dd>
<p>Enable optimization of <code class="code">&amp;&amp;</code> and <code class="code">||</code> in conditional execution
(default).
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-mno_002dmulti_002dcond_002dexec"></a><span><code class="code">-mno-multi-cond-exec</code><a class="copiable-link" href="#index-mno_002dmulti_002dcond_002dexec"> &para;</a></span></dt>
<dd>
<p>Disable optimization of <code class="code">&amp;&amp;</code> and <code class="code">||</code> in conditional execution.
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-mnested_002dcond_002dexec"></a><span><code class="code">-mnested-cond-exec</code><a class="copiable-link" href="#index-mnested_002dcond_002dexec"> &para;</a></span></dt>
<dd>
<p>Enable nested conditional execution optimizations (default).
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-mno_002dnested_002dcond_002dexec"></a><span><code class="code">-mno-nested-cond-exec</code><a class="copiable-link" href="#index-mno_002dnested_002dcond_002dexec"> &para;</a></span></dt>
<dd>
<p>Disable nested conditional execution optimizations.
</p>
<p>This switch is mainly for debugging the compiler and will likely be removed
in a future version.
</p>
</dd>
<dt><a id="index-moptimize_002dmembar"></a><span><code class="code">-moptimize-membar</code><a class="copiable-link" href="#index-moptimize_002dmembar"> &para;</a></span></dt>
<dd>
<p>This switch removes redundant <code class="code">membar</code> instructions from the
compiler-generated code.  It is enabled by default.
</p>
</dd>
<dt><a class="index-entry-id" id="index-moptimize_002dmembar-1"></a>
<a id="index-mno_002doptimize_002dmembar"></a><span><code class="code">-mno-optimize-membar</code><a class="copiable-link" href="#index-mno_002doptimize_002dmembar"> &para;</a></span></dt>
<dd>
<p>This switch disables the automatic removal of redundant <code class="code">membar</code>
instructions from the generated code.
</p>
</dd>
<dt><a id="index-mtomcat_002dstats"></a><span><code class="code">-mtomcat-stats</code><a class="copiable-link" href="#index-mtomcat_002dstats"> &para;</a></span></dt>
<dd>
<p>Cause gas to print out tomcat statistics.
</p>
</dd>
<dt><a id="index-mcpu-6"></a><span><code class="code">-mcpu=<var class="var">cpu</var></code><a class="copiable-link" href="#index-mcpu-6"> &para;</a></span></dt>
<dd>
<p>Select the processor type for which to generate code.  Possible values are
&lsquo;<samp class="samp">frv</samp>&rsquo;, &lsquo;<samp class="samp">fr550</samp>&rsquo;, &lsquo;<samp class="samp">tomcat</samp>&rsquo;, &lsquo;<samp class="samp">fr500</samp>&rsquo;, &lsquo;<samp class="samp">fr450</samp>&rsquo;,
&lsquo;<samp class="samp">fr405</samp>&rsquo;, &lsquo;<samp class="samp">fr400</samp>&rsquo;, &lsquo;<samp class="samp">fr300</samp>&rsquo; and &lsquo;<samp class="samp">simple</samp>&rsquo;.
</p>
</dd>
</dl>

</div>
<hr>
<div class="nav-panel">
<p>
Next: <a href="GNU_002fLinux-Options.html">GNU/Linux Options</a>, Previous: <a href="FT32-Options.html">FT32 Options</a>, Up: <a href="Submodel-Options.html">Machine-Dependent Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>
